<?php
	$data = array();
	$data['title'] = "Danh sách hóa đơn";
	$data['template'] = "order/list_order";
	//$data['act'] = 9;
	$db = new Model_order;
	$pager = new libraries_pager;
	$limit = 20 ;
	$pager->set_link("index.php?mod=order&act=list");
	$total = $db->total_order();
	$start = $pager->start();
	$pages = $pager->page($total,$limit);
	$data['pagelist'] = $pager->listpage($pages,$start,$limit);
	$data['list'] = $db->list_order($start,$limit);
	//debug($data['list']);
	loadview("layout",$data);
?>